package com.yc.study.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 课程资料信息
 * </p>
 *
 * @author 王妍
 * @since 2022-04-10
 */
@Getter
@Setter
@TableName("course_materials")
@ApiModel(value = "CourseMaterials对象", description = "课程资料信息")
public class CourseMaterials implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("标题")
    @TableField("title")
    private String title;

    @ApiModelProperty("url路径")
    @TableField("src")
    private String src;

    @ApiModelProperty("课程id")
    @TableField("course_id")
    private Long courseId;


}
